<article class="module width_full">
    <header><h3>User Add</h3></header>  
    <div class="module_content">
        <table cellspacing="10"> 
            <tr> 
                <td>Nama Group</td> 
                <td><input type="text" title="nama_grup"></td>  
            </tr>            
            <tr> 
                <td>Deskripsi</td> 
                <td><input type="text" title="deskripsi_grup"></td>  
            </tr>   
            <tr> 
                <td>Hak Akses</td> 
                <td>
                    <?php
                        foreach ($menu as $menu_parent) 
                        {
                            if ($menu_parent['parent_menu_id'] == 0) //jika menu parent = 0 (menu utama)
                            {
                                echo $menu_parent['menu_title']."<br />";
                                foreach ($menu as $menu_child) //perulangan untuk mengetahui submenu
                                {
                                    if ($menu_child['parent_menu_id'] == $menu_parent['menu_id']) //jika id submenu = id menu utama
                                    {
//                                        $link = site_url($menu_child['mdl_link']);
                                        echo "<input type=\"checkbox\" name=\"hak_akses[]\" value=\"".$menu_parent['menu_id']."\">".$menu_child['menu_title']."<br />";
//                                        echo "<a href=\"javascript:void(0)\" onclick=\"do_load('$link')\">".$menu_child['menu_title']."</a></li>";
                                    }
                                    
                                }
                                echo "</ul>";
                            }
                        }
                    ?>
                </td>  
            </tr>
        </table>
    </div>
    <footer>
        <div class="submit_link">
            <input type="submit" value="Publish" class="alt_btn">
            <input type="submit" value="Back">
            <!-- <input type="submit" value="Reset"> -->
        </div>
    </footer>
</article>
<!-- <h4 class="alert_success"></h4> -->